﻿namespace _9.运算符优先级
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var b = 20;

            bool a1 = b > 2;
            bool a2 = (1 > 0) && a1;
            var d = (1 + b > 2) && ((b - 1) < 2);
            Console.WriteLine($"d的值: {d}");

            var e = 1 + b > 2 || b - 1 < 2;
            Console.WriteLine($"e的值: {e}");

            int f = 10 * 5 + 3; // 结果为 53，先计算乘法，再计算加法
            Console.WriteLine($"f的值: {f}");

            int g = 10 * (5 + 3); // 结果为 80
            Console.WriteLine($"g的值: {g}");
        }
    }
}
